<?php declare(strict_types=1);

namespace app\library;

class AppCode {

    // 请求成功
    const REQUEST_SUCCESS = 100000;
    // Token 必须
    const TOKEN_MUST = 100001;
    // 认证失败
    const AUTH_FAILURE = 100002;
    // 数据不存在
    const OBJECT_NOT_FOUND = 100003;
    // 参数校验失败
    const VALIDATE_FAILURE = 100004;
    // 请求方法错误
    const REQUEST_METHOD_INVALIDATE = 100005;
    // 已存在
    const OBJECT_HAS_EXISTS = 100006;
    // 无权访问
    const PERMISSION_DENY = 999997;
    // 操作失败
    const OPERATE_FAILURE = 999998;
    // 系统出错
    const SYSTEM_ERROR = 999999;

}
